package com.ruoyi.community.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class ServiceRules {
    private Long id;

    private Long communityId;

    private String title;

    private String brief;

    private String coverUrl;

    private String type;

    private String content;

    private Boolean logicDelete;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief == null ? null : brief.trim();
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl == null ? null : coverUrl.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public Boolean getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(Boolean logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    @Override
    public String toString() {
        return "ServiceRules{" +
                "id=" + id +
                ", communityId=" + communityId +
                ", title='" + title + '\'' +
                ", brief='" + brief + '\'' +
                ", coverUrl='" + coverUrl + '\'' +
                ", type='" + type + '\'' +
                ", content='" + content + '\'' +
                ", logicDelete=" + logicDelete +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                '}';
    }
}